package xin.baizhiedu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import xin.baizhiedu.entity.TBaseConfig;
import xin.baizhiedu.mapper.TBaseConfigMapper;
import xin.baizhiedu.service.configDaoService;

import javax.annotation.Resource;

@Service
@Transactional
public class configDaoServiceImpl  implements configDaoService {
    @Resource(name = "TBaseConfigMapper")
    TBaseConfigMapper tBaseConfigMapper;
    @Override
    public TBaseConfig findTBaseConfigByConfCode(String qywxRobotid) {
        LambdaQueryWrapper<TBaseConfig> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TBaseConfig::getConfCode, qywxRobotid);
        return tBaseConfigMapper.selectOne(wrapper);
    }
}
